﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Chain_Maintain" CodeFile="Chain_Maintain.aspx.cs" MasterPageFile="~/MasterPage.master"%>

<%@ Register src="../UserControl/GridPager.ascx" tagname="GridPager" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>经销商</title>
        <script src="../JavaScript/common.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td colspan="2" class="tabletitle" style="height: 10px">
                    <asp:Literal ID="Literal5" runat="server" Text="<%$resources:language,lbl_Input_Form %>"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                   
                    <font color="red" size="2"><b>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$resources:language,lbl_Required %>"></asp:Literal></b></font>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:ValidationSummary runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tablefield" style="width: 30%">
                    <span class="keyword">*</span>
                    经销商代码
                </td>
                <td>
                    <asp:TextBox runat="server"  ID="txtCode" 
                    class="default"    MaxLength="50"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$resources:language,lbl_TheRequired %>"
                        ControlToValidate="txtCode"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tablefield" style="width: 30%">
                    <span class="keyword">*</span>
                    <asp:Literal ID="Literal7" runat="server" Text="<%$resources:language,lbl_Description %>"></asp:Literal>
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox class="default" runat="server"  ID="txtName" 
                        MaxLength="100" size="30"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$resources:language,lbl_TheRequired %>"
                       ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tablefield" style="width: 30%">
                    部门</td>
                <td nowrap="nowrap">
                                        <asp:TextBox ID="txtOrg" class="default" runat="server" onkeydown="alert('请选择部门');return false;" ></asp:TextBox>
                    <img src="../Resources/Images/search.png" alt="查找" style="cursor:pointer;"
                    onclick="openPopup('../System/PopupOrganization.aspx?NameControlId=<%# txtOrg.UniqueID %>&ValueControlId=<%# txtHidOrg.UniqueID %>&SelectType=single','','300','500');"/>
                    <input id="txtHidOrg" type="hidden" runat="server" /><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" ControlToValidate="txtOrg" runat="server" ErrorMessage="请选择部门"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" >
                    <asp:Literal ID="Literal9" runat="server" Text="<%$resources:language,lbl_Operation_Area %>"></asp:Literal>
                </td>
            </tr>            
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnSave" runat="server" class="wsd_button2" Text="<%$resources:language,btn_Save %>" OnClick="btnSave_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" class="wsd_button2" Text="<%$resources:language,btn_Cancel %>" CausesValidation="false"  OnClick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>
